package com.neusoft.neu24.controller;


import com.neusoft.neu24.Result.CommonResult;
import com.neusoft.neu24.dto.Aqi2PublicDTO;
import com.neusoft.neu24.service.impl.AqiServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/aqi")
public class AqiController {


    @Resource
    private AqiServiceImpl aqiService;




    @GetMapping("/list")
    public CommonResult<List<Aqi2PublicDTO>> listAll2Public() {

        return aqiService.listAll2Public();
    }
}
